package com.geekca.j2.mysingle;

public class TestSingle {
    public static void main(String[] args) {
//        ATMMachine atm = new ATMMachine();
        ATMMachine atm = ATMMachine.instance;
        atm.showMoney();

        System.out.println("==========懒汉==========");

        LazyBoy lazyBoy = LazyBoy.getInstance();
        System.out.println(lazyBoy);

        System.out.println(LazyBoy.getInstance());
    }

}
